package com.gla.giliair.service;

import com.gla.giliair.entity.*;
import com.gla.giliair.web.vo.CustomerVO;

import javax.servlet.http.HttpSession;
import java.util.List;
import java.util.Map;

/**
 * @Description:
 * @Author: Yingtian qian
 * @Date: 2021/8/23 15:17
 */
public interface UserService {

    Customer selectCustomerById(Long customerId);

    List<Customer> selectAllCustomers(CustomerExample orderBy);

    List<Customer> selectCustomersByParams(CustomerExample orderBy, CustomerVO searchParams);

    Map<String, Object> registerUser(Customer user);

    Map<String, Object> checkLogin(String username, String password, HttpSession httpSession);

    Map<String, Object> resetUserPassword(Customer user);

    CustomerVO updateUserInfo(CustomerVO userVO, HttpSession httpSession);

    Boolean isIdentityExist(String identity, Long customerId);

    Map<String, Object> findAllUsers(String sort, boolean isASC, Integer page, Integer pageSize);

    Map<String, Object> addUser(Customer user);

    Map<String, Object> modifyUser(Customer user);

    Map<String, Object> searchCustomers(String sort, boolean isASC, Integer page, Integer pageSize, CustomerVO searchParams);
}
